package com.hiking.cmdchat.utils;

import com.hiking.cmdchat.bean.PromptBean;

import java.util.ArrayList;

public class PromptSearchUtils {
    public static ArrayList<PromptBean> search(String s) {
        ArrayList<PromptBean> datas = new ArrayList<>();
        if (s.equals("h")) {
            datas.add(new PromptBean("help", 1));
            datas.add(new PromptBean("hiking", 1));
        } else if (s.equals("hi")) {
            datas.add(new PromptBean("hiking", 1));
        }  else if (s.equals("")) {
            datas.add(new PromptBean("help", 0));
            datas.add(new PromptBean("search", 0));
            datas.add(new PromptBean("history", 0));
            datas.add(new PromptBean("find", 0));
            datas.add(new PromptBean("clear", 0));
            datas.add(new PromptBean("about", 0));

        }
        return datas;
    }
}
